package com.ltkj.ticket.mapper;

import com.ltkj.ticket.domain.TicVenuesPeriod;
import com.ltkj.ticket.domain.vo.TicVenuesListVO;
import org.apache.ibatis.annotations.Param;

import java.util.Date;
import java.util.List;

/**
 * @Author gushaoliang
 * @Date 2023/8/30 14:56
 * @PackageName:com.ltkj.ticket.mapper
 * @ClassName: TicVenuesBusinessMapper
 * @Description: TODO
 * @Version 1.0
 */
public interface TicVenuesBusinessMapper {

    List<TicVenuesListVO> list(TicVenuesListVO ticVenuesListVO);


    public int inserTvenuesConfigList(@Param("list")List<String> list, @Param("username")String username
            , @Param("venuesId")Long venuesId, @Param("venuesProgrammeId")Long venuesProgrammeId, @Param("ticOtherBaseId")Long ticOtherBaseId,
                                      @Param("sysStoresId")Long sysStoresId);
    public int inserVenuesPeriodList(@Param("list")List<String> list, @Param("venuesPeriodList")List<TicVenuesPeriod> venuesPeriodList,@Param("username")String username
            , @Param("venuesId")Long venuesId, @Param("venuesProgrammeId")Long venuesProgrammeId, @Param("ticOtherBaseId")Long ticOtherBaseId);
    int searchCountBydateAndVenues(@Param("list")List<String> list, @Param("ticOtherBaseId")Long ticOtherBaseId);

    public int deleteVenuesPeriodByDateAndOtherBaseId(@Param("ticOtherBaseId")Long ticOtherBaseId,@Param("venuesDate") Date venuesDate);

    public int inserVenuesPeriodEdit( @Param("venuesPeriodList")List<TicVenuesPeriod> venuesPeriodList,@Param("username")String username
            , @Param("venuesId")Long venuesId, @Param("venuesProgrammeId")Long venuesProgrammeId, @Param("ticOtherBaseId")Long ticOtherBaseId,@Param("venuesDate")Date venuesDate);
public List<TicVenuesPeriod> searchList(@Param("ticOtherBaseId")Long ticOtherBaseId,@Param("venuesDate") Date venuesDate);

    public int updateVenuesPeriodById(@Param("id")Long id,@Param("userName")String userName);
    public int updatePeriodEdit( @Param("ticVenuesPeriod")TicVenuesPeriod ticVenuesPeriod,
                                 @Param("username")String username
            , @Param("venuesId")Long venuesId, @Param("venuesProgrammeId")Long venuesProgrammeId, @Param("ticOtherBaseId")Long ticOtherBaseId,@Param("venuesDate")Date venuesDate);
}